<template>
    <van-nav-bar border :title="title" right-text="切换智能笔" @click-right="bluetooth.connect()" />
</template>

<script>
    import { mapGetters } from 'vuex';
    export default {
        props: {
            title: {
                type: String,
                required: true,
            }
        },
        computed: {
            ...mapGetters(['bluetooth'])
        }
    }
</script>

<style>
    .van-nav-bar__text {
        color: #EC6938;
    }

    .van-nav-bar .van-icon {
        color: #EC6938;
    }
</style>